#ifndef __BOARD_H
#define __BOARD_H
#include <stdio.h>
#include "project_config.h"
#include "bsp.h"
#include "bsp_gpio.h"



#if (BOARD_MOTOR_EN)
// DO
#define MOTOR1_PH1					PB_1
#define MOTOR1_PH2					PB_2
#define MOTOR2_PH1					PB_11
#define MOTOR2_PH2					PB_12
#define MOTOR3_PH1					PB_14
#define MOTOR3_PH2					PB_15
#define MOTOR4_PH1					PC_7
#define MOTOR4_PH2					PC_8
#define MOTOR5_PH1					PA_9
#define MOTOR5_PH2					PA_8
#define MOTOR6_PH1					PD_1
#define MOTOR6_PH2					PD_0
#define MOTOR7_PH1					PC_0
#define MOTOR7_PH2					PC_13
#define MOTOR8_PH1					PC_4
#define MOTOR8_PH2					PA_0
#define MOTOR9_PH1					PA_6
#define MOTOR9_PH2					PA_7
#define MOTOR10_PH1					PC_5
#define MOTOR10_PH2					PB_0

#define MOTOR_SET1					PA_15
#define MOTOR_SET2					PC_10
#define MOTOR_SET3					PD_2
#define MOTOR_SET4					PC_12
#define MOTOR_SET5					PC_11
#define MOTOR_SET6					PB_3
#define MOTOR_SET7					PB_4
#define MOTOR_SET8					PB_5
#define MOTOR_SET9					PB_6
#define MOTOR_SET10					PB_7

// DI
#define M1_SENSOR_INT				PB_10
#define M2_SENSOR_INT				PB_13
#define M3_SENSOR_INT				PC_6
#define M4_SENSOR_INT				PC_9
#define M5_SENSOR_INT				PA_11
#define M6_SENSOR_INT				PC_1
#define M7_SENSOR_INT				PC_2
#define M8_SENSOR_INT				PA_4
#define M9_SENSOR_INT				PA_5
#define M10_SENSOR_INT				PC_3

#define Motor_Forward				PA_10
#define Motor_Reverse				PA_12
#define Motor_Reset					PB_8
#define Motor_Break					PB_9

// 485
#define RS485_DIR					PA_1
#define RS485_TXD					PA_2
#define RS485_RXD					PA_3


#endif


#endif	/* __BOARD_H */

